package com.jarchie.htgl.constants;

/**
 * Created by Jarchie on 2017\12\11.
 * 配置项的常量类
 */

public class ConfigConstant {

    //基础域名
    public static final String BASE_URL = "http://192.168.0.109:8080/htgl/rest/";

    //返回数据是否成功字段名
    public static final String MSG = "MSG";

    //返回数据总数字段名
    public static final String NUMBER = "NUMBER";

    //返回数据json字段名
    public static final String INFO = "INFO";

    //后台接口调用成功
    public static final String SUCCESS = "SUCCESS";

    //后台接口调用错误
    public static final String ERROR = "ERROR";

    //配置文件，文件名
    public static final String SHARE_NAME = "config";

    //登录时的用户名和密码的key
    public static final String SHARE_UNAME_KEY = "username";
    public static final String SHARE_PWD_KEY = "pwd";

    //Back键退出应用所需时间
    public static final int EXIT_TIME = 2000;

    //发射数据的初始值
    public static final int INTERVAL_START = 0;

    //发射数据的结束值
    public static final int INTERVAL_END = 3;

    //每秒发送的数据量
    public static final int INTERVAL_REPEAT = 1;

    //发射数据的时间延时
    public static final int INTERVAL_DELAY = 0;

    //发射数据倒计时计算的值
    public static final int INTERVAL_COMPUTATIONS = 2;

    //分页请求数据时每页的数据量
    public static final int PAGE_SIZE = 10;

    //分页时的几种状态:初始化状态，下拉刷新，上拉加载
    public static final String PAGING_INIT = "init";
    public static final String PAGING_REFRESH = "refresh";
    public static final String PAGING_LOADMORE = "loadmore";

    //审核列表页跳转到详情页的状态
    public static final String PAGE_INTENT_NO = "noApprove";
    public static final String PAGE_INTENT_ALREADY = "alreadyApprove";

    //审核状态
    public static final String STATE_AGREE = "agree";
    public static final String STATE_DISAGREE = "disagree";

}
